package com.cq.hd.member.controller;

import com.cq.hd.common.entity.mq.MerchantLoginRecordMsg;
import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.member.api.TbMerchantLoginRecordApi;
import com.cq.hd.member.service.TbMerchantLoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商户登录记录表 前端控制器
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@RestController
public class TbMerchantLoginRecordController implements TbMerchantLoginRecordApi {

    @Autowired
    private TbMerchantLoginRecordService merchantLoginRecordService;

    @Override
    public Result<Boolean> saveMerchantLoginRecord(@RequestBody MerchantLoginRecordMsg merchantLoginRecordMsg) {
        return ResultGenerator.success(merchantLoginRecordService.saveMerchantLoginRecord(merchantLoginRecordMsg));
    }
}
